package sy.service.impl;

import java.io.Serializable;
import java.util.List;
import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.log4j.Logger;

import sy.dao.SysOwnerRenterMappingDaoI;
import sy.model.SysAccount;
import sy.model.SysOwnerRenterMapping;
import sy.service.SysAccountServiceI;
import sy.service.SysOwnerRenterMappingServiceI;
import sy.util.Encrypt;
import sy.util.ResultJson;

@Service("sysOwnerRenterMappingService")
public class SysOwnerRenterMappingImpl implements SysOwnerRenterMappingServiceI {
	
	private static final Logger logger = Logger.getLogger(SysOwnerRenterMapping.class);
	private SysOwnerRenterMappingDaoI sysOwnerRenterMappingDao;
	@Autowired
	SysAccountServiceI sysAccountService;

	public SysOwnerRenterMappingDaoI getSysOwnerRenterMappingDao() {
		return sysOwnerRenterMappingDao;
	}

	@Autowired
	public void setSysOwnerRenterMappingDao(SysOwnerRenterMappingDaoI sysOwnerRenterMappingDao) {
		this.sysOwnerRenterMappingDao = sysOwnerRenterMappingDao;
	}

	@Override
	public Serializable save(SysOwnerRenterMapping sysOwnerRenterMapping) {
		
		return sysOwnerRenterMappingDao.save(sysOwnerRenterMapping);
	}

	@Override
	public void remove(SysOwnerRenterMapping sysOwnerRenterMapping) {
		// TODO Auto-generated method stub
		sysOwnerRenterMappingDao.remove(sysOwnerRenterMapping);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysOwnerRenterMappingServiceI#update(sy.model.SysOwnerRenterMapping)
	 */
	@Override
	public void update(SysOwnerRenterMapping sysOwnerRenterMapping) {
		// TODO Auto-generated method stub
		sysOwnerRenterMappingDao.update(sysOwnerRenterMapping);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysOwnerRenterMappingServiceI#list()
	 */
	@Override
	public List<SysOwnerRenterMapping> list() {
		// TODO Auto-generated method stub
		return sysOwnerRenterMappingDao.list();
	}

	/* (non-Javadoc)
	 * @see sy.service.SysOwnerRenterMappingServiceI#getSysOwnerRenterMappingById(java.lang.String)
	 */
	@Override
	public SysOwnerRenterMapping getSysOwnerRenterMappingById(String id) {
		// TODO Auto-generated method stub
		return sysOwnerRenterMappingDao.getSysOwnerRenterMappingById(id);
	}

	/* (non-Javadoc)
	 * @see sy.service.SysOwnerRenterMappingServiceI#listSysOwnerRenterMappingByKey(java.lang.String)
	 */
	@Override
	public List<SysOwnerRenterMapping> listSysOwnerRenterMappingByKey(String key) {
		// TODO Auto-generated method stub
		return sysOwnerRenterMappingDao.listSysOwnerRenterMappingByKey(key);
	}

	@Override
	public Serializable deleteRenterVisitor(String ownerId,
			String renterOrvisitorId) {
		// TODO Auto-generated method stub
		return sysOwnerRenterMappingDao.deleteRenterVisitor(ownerId, renterOrvisitorId);
	}

	@Override
	public List<SysOwnerRenterMapping> listSysOwnerRenterMappingByRentorId(
			String renterId) {
		// TODO Auto-generated method stub
		return sysOwnerRenterMappingDao.listSysOwnerRenterMappingByRentorId(renterId);
	}



}
